﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Zyg.SSO.Core.Business;

namespace Zyg.SSO.Web
{
    public partial class ProcessPage : BasePage
    {
        public AccoutAppUserCollection usercollect;
        public int i = 0;
        public string strAPID = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            usercollect = handleAPPList();
        }

        AccoutAppUserCollection handleAPPList()
        {
            if (Request.QueryString["APID"] == null)
            {
                throw (new Exception("非法请求"));
            }
            strAPID = Request.QueryString["APID"].ToString();
            App app = new App();
            app = App.Load(new Guid(strAPID));

            Account user = base.Account;

            return AccountApp.Load(user.Id, app.Id).Users;
        }
    }
}
